<?php 



	if(!isset($_SESSION['username'])){
		echo "<script>alert('请登录！');window.location.href='index.php?m=admin&c=manage'</script>";die;
	}


	authonity($con);


	$id = $_GET['id'];

	$aid = $_GET['aid'];

	$mid = $_GET['mid'];

	$query = dbdelete($con,'banner',"id='{$id}'"); 

	if($query){
		echo "<script>alert('删除成功');window.history.back(-1);</script>";
	}else{


		die;echo "<script>alert('删除失败');window.history.back(-1);</script>";
	}
















?>